Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable experiment types that do parameter updates if there are no params to update #9007

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JHolba
Copy link
Contributor

@JHolba JHolba commented Oct 21, 2024

If all parameters have UPDATE:FALSE set, then we should not let the user select any mode that does parameter updates.

Issue
Resolves #8970

Approach
Added a check to see if any parameter has update set to true. If it fails we disable experiment types that do parameter updates.

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure unit tests pass locally after every commit (git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"')

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Create Backport PR to latest release

@JHolba JHolba self-assigned this Oct 21, 2024
@JHolba JHolba added release-notes:misc Automatically categorise as miscellaneous change in release notes release-notes:improvement Automatically categorise as improvement in release notes and removed release-notes:misc Automatically categorise as miscellaneous change in release notes labels Oct 21, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.74%. Comparing base (90d11ec) to head (ef654a4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9007      +/-   ##
==========================================
- Coverage   90.76%   90.74%   -0.03%     
==========================================
  Files         351      351              
  Lines       21895    21898       +3     
==========================================
- Hits        19874    19871       -3     
- Misses       2021     2027       +6     
Flag Coverage Δ
cli-tests 39.22% <71.42%> (-0.02%) ⬇️
gui-tests 71.73% <71.42%> (-0.01%) ⬇️
performance-tests 49.37% <14.28%> (+<0.01%) ⬆️
unit-tests 79.65% <71.42%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JHolba JHolba marked this pull request as ready for review October 21, 2024 13:48
@xjules
Copy link
Contributor

xjules commented Oct 22, 2024

I think it would be nice to write a test for this. At least the ErtCliError.

Copy link
Contributor

@xjules xjules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good, but missing a test. Cli part should be easy to test, GUI part should be doable also I guess :)

@JHolba JHolba force-pushed the disable-updates branch 2 times, most recently from f9c5679 to 7d00230 Compare October 30, 2024 09:39
If all parameters have UPDATE:FALSE set, then we should not let the user
select any mode that does parameter updates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:improvement Automatically categorise as improvement in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deactivate parameter update experiment types when GEN_KW is disabled using UPDATE:FALSE
3 participants